package behaviors;

import model.Entity;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.contacts.ContactPoint;
import org.jbox2d.dynamics.contacts.ContactResult;

public abstract class Behavior {

	Body body;
	Entity entity;

	public abstract void init();

	public abstract void onCollide(ContactPoint arg0);

	public abstract void onRemove(ContactPoint arg0);

	public abstract void onPersist(ContactPoint arg0);

	public abstract void onResult(ContactResult arg0);

	public void update(Body b) {
		body = b;
		entity = (Entity) b.getUserData();
	}

	public Behavior clone() {
		return this;
	}
}
